home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16250 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: sm-igw1.geoplex.com!usenet
  2. From: "Jay B. Perry" <jay@geoplex.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Strange error
  5. Date: Tue, 09 Apr 1996 11:28:45 -0700
  6. Organization: AT & T
  7. Message-ID: <316AAC5D.314D@geoplex.com>
  8. References: <1996Apr9.111558@winnie>
  9. NNTP-Posting-Host: 204.160.245.22
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14. CC: zhou@wmich.edu
  15.  
  16. zhou@wmich.edu wrote:
  17. >         I have been stymied by an error which occurs during run time for
  18. > certain programs I've written in TC++.  What ever I do I cannot find the
  19. > cause of it.  The error says something to the effect of "Floating point
  20. > error: Domain." or "Domain Error" and "abnormal program termination".  What
  21. > is usually the cause of this?  Thanks.
  22. >                         -Hanson
  23.  
  24. This often comes from the math routines that have domain restrictions
  25. (remember from math class that the domain of functions is sort of like
  26. the set of values that are valid inputs; I am not a mathematician so
  27. please don't hammer my lack of precise usage here).  An example of something
  28. that would cause this (for float/integer numbers) would be taking the sqrt of 
  29. a negative number.
  30.  
  31. There may be other causes of your error as well, but this was one
  32. possibility that jumped to my mind.  Hope this helps out.
  33.  
  34. Jay
  35.  
  36. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  37. Jay B. Perry, AT&T            | jay@geoplex.com
  38. 2929 Campus Drive - Suite 350 | V: (415) 577-7747
  39. San Mateo, CA 94403           | F: (415) 577-7711
  40.